package com.share.bean.attach.advertise;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * <p>Title：广告版位分类</p>
 * <p>Description：</p>
 * @Author：杨浩泉
 * @Date：2010-4-23
 */
@Entity
@Table(name="share_adPositionSort")
public class PositionSort {
	
	/** 版位分类ID */
	private int psId ;
	
	/** 版位分类名称 */
	private String psName ;
	
	/** 版位 分类描述 */
	private String psDesc ;
	
	/** 版位分类与版位列表一对多关联关系 */
	private Set<PositionItem> adPI ;
	
	@OneToMany(mappedBy="adPS")
	@JoinColumn(name="ps_id")
	public Set<PositionItem> getAdPI() {
		return adPI;
	}

	public void setAdPI(Set<PositionItem> adPI) {
		this.adPI = adPI;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE)
	public int getPsId() {
		return psId;
	}

	public void setPsId(int psId) {
		this.psId = psId;
	}

	public String getPsName() {
		return psName;
	}

	public void setPsName(String psName) {
		this.psName = psName;
	}

	public String getPsDesc() {
		return psDesc;
	}

	public void setPsDesc(String psDesc) {
		this.psDesc = psDesc;
	}
	
}
